<extend name="Console:index"/>
<block name="main">
    <h1 class=" text-center" style="color: #000000">用户管理</h1>

     <div><a href="{:U('User/addUser')}" class="btn btn-warning">增加用户</a></div>
            <table class="table">
                <tr>
                    <th>ID</th>
                    <th>账号</th>
                    <th>昵称</th>
                    <th>角色</th>
                    <th>注册时间</th>
                   <!-- <th>最后登录时间</th>-->
                    <th>状态</th>
                    <th>操作</th>
                </tr>

                <volist name="userlist" id="l" >
                    <tr>
                        <td>{$l.uid}</td>
                        <td>
                            <a href="{:U('User/addUser',array('uid'=>$l['uid']))}">{$l.username}</a>
                        </td>
                        <td>
                            {$l.name}
                        </td>

                        <td>
                            {$l.rolename}
                        </td>
                        <td>
                            {$l.reg_date}
                        </td>
                       <!-- <td>
                            {$l.last_login_date}
                        </td>-->


                        <td>
                            <eq name="l.ustatus" value="1">
                                <a href="{:U('User/changStatus',array('uid'=>$l['uid'],'st'=>1))}">启用</a>
                                <else/>
                               <a href="{:U('User/changStatus',array('uid'=>$l['uid'],'st'=>0))}" style="color: red">禁止</a>
                            </eq>
                        </td>

                        <td>
                            <a href="{:U('User/changPaw',array('uid'=>$l['uid']))}">修改密码</a>
                        </td>

                    </tr>
                </volist>

            </table>

    </div>
<script type='text/javascript'>
    $(function(){
        $('.brand12').css('border-bottom','4px solid #e97500');
    })
</script>
</block>